import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;


public class ChangeTile {
	
	public static void ChangePreviewTile(int i){
		
		VarHolder.PreviewBlockId += i;
		VarHolder.PreviewBlock = VarHolder.Blocks[VarHolder.PreviewBlockId];
	}
		
	
	
	public static void PlaceBlock(){
		int i = 0;
		int y = (int)(VarHolder.MouseY * VarHolder.ArrayLength/VarHolder.TileWidth - VarHolder.DirY/VarHolder.TileWidth) + VarHolder.MouseX + VarHolder.MouseY - VarHolder.DirX/VarHolder.TileWidth;		
		VarHolder.TileType[y] = VarHolder.PreviewBlockId; 
		VarHolder.Tile[y] = VarHolder.PreviewBlock;
	}
}
